#include <iostream>
#include "HttpServer.hpp"

void UseAge(char* proc){
    cout << "UseAge: " << endl;
    cout << "    " << proc << " -port" << endl;
}

int main(int argc, char* argv[])
{
    if(2 != argc){
        UseAge(argv[0]);
        return 0;
    }
    int port = atoi(argv[1]);
    HttpServer* http = HttpServer::GetInstance(port);
    http->Loop();
    return 0;
}